/**
 * @author
 * @version V1.0
 */
package com.hc.service.service.impl;

import javax.annotation.Resource;


import org.springframework.stereotype.Service;

import com.hc.comm.mapper.Mapper;
import com.hc.comm.base.BaseServiceImpl;
import com.hc.service.dao.BannersMapper;
import com.hc.service.model.BannersModel;
import com.hc.service.service.IBannersService;

import java.util.List;

/**
 * 轮播图表的业务实现类
 *
 * @author
 */
@Service("bannersService")
public class BannersServiceImpl extends BaseServiceImpl<BannersModel>
        implements IBannersService {


    @Resource(name = "bannersMapper")
    private BannersMapper bannersMapper;

    @Override
    protected Mapper<BannersModel> getMapper() {
        return bannersMapper;
    }


    @Override
    public List<BannersModel> getShowBannerByState(int state) throws Exception {
        return bannersMapper.getShowBannerByState(state);
    }
}
